package com.company;

import java.util.Scanner;

/**
 * @author jrue
 * @version 1.0
 * @date 2020/3/21 15:39
 */
public class Main25 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        if (n == 1) {
            return;
        }
        int[] dp = new int[n];
        dp[0] = 1;
        dp[1] = 1;
        int endIndex = 2;
        for (int i = 2; i < dp.length; i++) {
            dp[i] = dp[i - 1] + dp[ i - 2];
            endIndex = i;
            if (dp[i] > n) break;
        }
        for (int i = 0; i < endIndex; i++) {
            System.out.print(dp[i] + " ");
        }
    }

}
